package org.imlinker.util;

public class StringUtils {

	public static boolean isNotEmpty(String content) {

		if (content.trim().length() == 0) {
			return true;
		}

		return false;
	}

	public static boolean isEmpty(String text) {
		return !isNotEmpty(text);
	}

	public static boolean contains(String from, char c) {

		if (from.indexOf(c) >= 0) {
			return true;
		}

		return false;
	}

	public static String substringBeforeLast(String str, String c) {

		int i = str.lastIndexOf(c);

		return str.substring(0, i);
	}

}
